#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
@AUTHOR: tyc
@VERSION: 1.0.0
@DESCRIPTION: 
@time: 2021-07-04 18:36:49 
"""
import time
from threading import Thread


def fun(thread_name):
    for i in range(10):
        time.sleep(1)
        print(f'{thread_name}:{i}')


if __name__ == '__main__':
    t1 = Thread(target=fun, args=('t1', ))
    t1.start()
    t2 = Thread(target=fun, args=('t2',))
    t2.start()
    for i in range(10):
        time.sleep(0.5)
        print(f'main:{i}')
